package top.huntwolf.admin.pojo.cmsUser;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CMSUser {

    private int id;
    private String userName;
    private String userPwd;
    @JsonIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastLogin;
    @JsonIgnore
    private String salt;
    @JsonIgnore
    private Integer storeId;

    List<Role> roleList;
}
